package pers.yurwisher.rubick.manager.pojo.auth;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author yq 2021/4/26 15:13
 * @description CurrentUserInfo 当前用户信息
 */
@Data
public class CurrentUserInfo implements Serializable {
    private static final long serialVersionUID = 1939737922581283476L;

    private Long id;
    private String username;
    private String nickname;
    private String avatar;
    private String phone;
    private String mail;

    /**
     * 角色
     */
    private List<String> roles;

    /**
     * 数据访问域
     */
    @JSONField(serialize = false)
    private List<Long> dataScopes;

}
